package edu.zut.cs.software.perfect.course.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.perfect.base.domain.BaseEntity;

/**
 * @ClassName courseInformation
 * @Description TODO
 * @Author xiaoyingzi
 * @Date 2020年3月17日 下午5:32:46
 * @Version 1.0
 */
/**
 * Conduct data management for course information
 * @author xiaoyingzi
 *
 */
@Entity	
@Table(name = "T_COURSEINFORMATION")
public class CourseInformation extends BaseEntity<Long> {


	private static final long serialVersionUID = -6496788255572893171L;

	/**
	 * course of name
	 */
	@Column
	String courseName;
	
	/**
	 * Credits for this course
	 */
	@Column
	int credit;
	
	/**
	 * The teacher who teaches this course
	 */
	@Column
	String courseTeacher;
	
	/**
	 * The location of the course
	 */
	@Column
	String coursePlace;
	
	/**
	 * Period of time for this course
	 */
	@Column
	String courseTime;
	
	/**
	 * Establish a one-to-many relationship 
	 * between curriculum and curriculum categories
	 */
	@ManyToOne
	@JoinColumn(name = "COURSE_CATEGORY_ID")
	CourseCategory courseCategory;

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public int getCredit() {
		return credit;
	}

	public void setCredit(int credit) {
		this.credit = credit;
	}

	public String getCourseTeacher() {
		return courseTeacher;
	}

	public void setCourseTeacher(String courseTeacher) {
		this.courseTeacher = courseTeacher;
	}

	public String getCoursePlace() {
		return coursePlace;
	}

	public void setCoursePlace(String coursePlace) {
		this.coursePlace = coursePlace;
	}

	public String getCourseTime() {
		return courseTime;
	}

	public void setCourseTime(String courseTime) {
		this.courseTime = courseTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void setCourseCategory(CourseCategory courseCategory) {
		this.courseCategory = courseCategory;
	}
	
	
	
}
